* try attestation on windows continuous releases.
* add attestation for macos, linux continuous releases.
jobs:
macos:
name: macOS Build
+ permissions:
+ id-token: write
+ contents: read
+ attestations: write
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
sudo xcode-select --switch /Applications/Xcode_${{ matrix.XCODE_VERSION }}.app
./tools/ci_script_osx.sh . ${{ matrix.QT_VERSION }} ${{ matrix.GENERATOR }}
+ - name: Generate artifact attestation
+ if: ( github.event_name == 'push' ) && ( github.ref == 'refs/heads/master' ) && matrix.RELEASE
+ uses: actions/attest-build-provenance@v1
+ with:
+ subject-path: 'gui/GPSBabel-*.dmg'
+
- name: Deploy
# This only handles continous releases now, for other events artifacts may be saved in
# the 'Upload Artifacts' step.
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
RELEASE_NAME: Continuous-${{ runner.os }}
run: |
- echo GITHUB_REF: $GITHUB_REF
./tools/uploadtool/upload_github.sh gui/GPSBabel-*.dmg
- name: 'Upload Artifacts'
snap:
name: snap Build
+ permissions:
+ id-token: write
+ contents: read
+ attestations: write
runs-on: ubuntu-latest
outputs:
snap-file: ${{ steps.build-snap.outputs.snap }}
/snap/bin/gpsbabel -D3 || true
./testo -p /snap/bin/gpsbabel
+ - name: Generate artifact attestation
+ if: ( github.event_name == 'push' ) && ( github.ref == 'refs/heads/master' )
+ uses: actions/attest-build-provenance@v1
+ with:
+ subject-path: ${{ steps.build-snap.outputs.snap }}
+
- name: Deploy
# This only handles continous releases now, for other events artifacts may be saved in
# the 'Upload Artifacts' step.
windows:
name: windows Build
+ permissions:
+ id-token: write
+ contents: read
+ attestations: write
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
PNAME=./bld/gui/package/gpsbabel.exe GBTEMP=./gbtemp ./testo 2>&1
PNAME=./bld/gui/package/gpsbabel.exe GBTEMP=./gbtemp ./test_encoding_utf8 2>&1
+ - name: Generate artifact attestation
+ if: ( github.event_name == 'push' ) && ( github.ref == 'refs/heads/master' ) && matrix.RELEASE
+ uses: actions/attest-build-provenance@v1
+ with:
+ subject-path: 'bld/gui/GPSBabel-*-Setup.exe'
+
- name: Deploy
# This only handles continous releases now, for other events artifacts may be saved in
# the 'Upload Artifacts' step.